<template>
  <dv-scroll-ranking-board :config="config" style="width:400px;height:400px" />
</template>

<script>
  import * as good from 'src/api/good'
    export default {
        name: "expRank",
        data(){
          return{
            config: {
              data: [],
              rowNum: 7
            }
          }
        },
      methods: {
          initData(){
            const that = this
            good.getExpGood().then(function (response) {
              let data  = response.data.data
              console.log(data)
              that.config = {
                data: data,
                rowNum: 7,
                unit: '天',
                sort: false
              }
            })
          }
      },
      created() {
          this.initData()
      }
    }
</script>

<style scoped>

</style>
